package xyz.yuanjilu.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import xyz.yuanjilu.dao.WeixinKeywordDao;
import xyz.yuanjilu.entity.WeixinKeywordEntity;
import xyz.yuanjilu.service.WeixinKeywordService;



@Service("weixinKeywordService")
public class WeixinKeywordServiceImpl implements WeixinKeywordService {
	@Autowired
	private WeixinKeywordDao weixinKeywordDao;
	
	@Override
	public WeixinKeywordEntity queryObject(Long id){
		return weixinKeywordDao.queryObject(id);
	}
	
	@Override
	public List<WeixinKeywordEntity> queryList(Map<String, Object> map){
		return weixinKeywordDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return weixinKeywordDao.queryTotal(map);
	}
	
	@Override
	public void save(WeixinKeywordEntity weixinKeyword){
		weixinKeyword.setCreateTime(new Date());
		weixinKeywordDao.save(weixinKeyword);
	}
	
	@Override
	public void update(WeixinKeywordEntity weixinKeyword){
		weixinKeywordDao.update(weixinKeyword);
	}
	
	@Override
	public void delete(Long id){
		weixinKeywordDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		weixinKeywordDao.deleteBatch(ids);
	}
	
}
